From 339f6e141a231e7d2d766bd93b6b2295c825afb5 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Thu, 15 Dec 2016 13:17:57 +0100 Subject: [PATCH] Mention that gdk_window_create_similar_image_surface inherits the scale https://bugzilla.gnome.org/show_bug.cgi?id=776132 --- gdk/gdkwindow.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index 8c72268711..6e77e4e606 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -7743,6 +7743,10 @@ gdk_window_create_similar_surface (GdkWindow * window, * scale); * ]| * + * Note that unlike cairo_surface_create_similar_image(), the new + * surface's device scale is set to @scale, or to the scale factor of + * @window if @scale is 0. + * * Returns: a pointer to the newly allocated surface. The caller * owns the surface and should call cairo_surface_destroy() when done * with it. -- 2.30.2